<h1>Listing assemblies</h1>

<table>
  <tr>
    <th>Assembler</th>
    <th>Product</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @assemblies.each do |assembly| %>
  <tr>
    <td><%= assembly.assembler %></td>
    <td><%= assembly.product_id %></td>
    <td><%= link_to 'Show', assembly %></td>
    <td><%= link_to 'Edit', edit_product_assembly_path(assembly) %></td>
    <td><%= link_to 'Destroy', assembly, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Assembly', new_product_assembly_path %>
